package com.cm.caseManagement.service;

import com.cm.caseManagement.pojo.entity.CmLitigation;

import java.util.List;

/**
 * 诉讼Service接口
 *
 * @author ruoyi
 * @date 2025-10-05
 */
public interface ICmLitigationService
{
    /**
     * 查询诉讼
     *
     * @param id 诉讼主键
     * @return 诉讼
     */
    public CmLitigation selectCmLitigationById(Long id);

    /**
     * 查询诉讼列表
     *
     * @param cmLitigation 诉讼
     * @return 诉讼集合
     */
    public List<CmLitigation> selectCmLitigationList(CmLitigation cmLitigation);

    /**
     * 新增诉讼
     *
     * @param cmLitigation 诉讼
     * @return 结果
     */
    public int insertCmLitigation(CmLitigation cmLitigation);

    /**
     * 修改诉讼
     *
     * @param cmLitigation 诉讼
     * @return 结果
     */
    public int updateCmLitigation(CmLitigation cmLitigation);

    /**
     * 批量删除诉讼
     *
     * @param ids 需要删除的诉讼主键集合
     * @return 结果
     */
    public int deleteCmLitigationByIds(Long[] ids);

    /**
     * 删除诉讼信息
     *
     * @param id 诉讼主键
     * @return 结果
     */
    public int deleteCmLitigationById(Long id);

    /**
     * 根据案件id查询诉讼信息
     * @param caseId
     * @return
     */
    CmLitigation selectCmLitigationByCaseId(Long caseId);
}
